//
//  CurrencyType.h
//  MarketDataColloctor
//
//  Created by jiro on 10/03/11.
//  Copyright 2010 jiro music. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#import "DbTableEntry.h"
#import "DbConstants.h"

class CurrencyType : public DbTableEntry
{
public:

	static NSString* tableName();
	static NSString* queryCreateTable();
	static NSString* queryFieldsOfCreateTable();
	static NSString* queryInsertInitialValues();
	static NSString* querySelectAll();
	static NSString* querySelectAll( const std::vector< ClauseNode >& clauses );
	static NSString* querySelectAll( NSString* tableName, const std::vector< ClauseNode >& clauses );
	static NSString* querySelect( const std::vector< FieldNode >& fieldNodes, const std::vector< ClauseNode >& clauses );
	static NSString* querySelect( const std::vector< FieldNode >& fieldNodes, NSString* tableName, const std::vector< ClauseNode >& clauses );

	CurrencyType();
	CurrencyType( std::vector< const char* > values );

	NSString* queryInsert() const;
	NSString* queryInsertValue() const;


private:

	NSString* code;

	NSString* name;	
};